package com.skillworld.webapp.model.tutorial;

import java.util.List;

import com.skillworld.webapp.model.tutorial.MarkedTutorial.Mark;
import com.skillworld.webapp.model.user.User;
import com.skillworld.webapp.model.util.dao.GenericDao;

import es.udc.pojo.modelutil.exceptions.InstanceNotFoundException;

public interface MarkedTutorialDao extends GenericDao<MarkedTutorial,Long> {

    public List<Mark> findTutorialMarks(Long userId, Long tutorialId);
    public List<MarkedTutorial> findMarks(Long userId, Long tutorialId);
    public MarkedTutorial findMark(long userId, long tutorialId, Mark mark)
            throws InstanceNotFoundException;
    public boolean exists(long userId, long tutorialId, Mark mark);
    public void removeMark(long userId, long tutorialId, Mark mark)
            throws InstanceNotFoundException;
}

